package service.impl;

import java.util.List;

import dao.ComboDao;
import dao.impl.ComboDaoImpl;
import entiey.Combo;
import entiey.Menu;
import entiey.Table;
import service.ComboService;

public class ComboServiceImpl implements ComboService {

	private ComboDao dao=new ComboDaoImpl();
	
	@Override
	public boolean add(Combo c) {
		return dao.add(c)>0;
	}

	@Override
	public boolean delete(int id) {
		return dao.delete(id)>0;
	}

	@Override
	public boolean update(Combo c) {
		return dao.update(c)>0;
	}

	@Override
	public List<Combo> findAll() {
		return dao.findAll();
	}

	@Override
	public Combo findById(int id) {
		return dao.findById(id);
	}

	@Override
	public List<Combo> likeFind(String text) {
		return dao.findLikeAll(text);
	}

	

}
